package cn.edu.sgu.www.mhxysy.mapper.qiling;

import cn.edu.sgu.www.mhxysy.entity.except.Property;
import cn.edu.sgu.www.mhxysy.entity.qiling.QilingViewAttribute;
import cn.edu.sgu.www.mhxysy.vo.qiling.QilingViewAttributeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface QilingViewAttributeMapper extends BaseMapper<QilingViewAttribute> {

    /**
     * 查询器灵可选属性
     * @param equipmentId 装备类型ID
     * @return List<Property>
     */
    List<Property> selectProperty(@Param("equipmentId") Integer equipmentId);

    /**
     * 通过装备类型id和器灵等级查询器灵预览属性
     * @param equipmentId 器灵类型id
     * @param grade 器灵等级
     * @return List<QilingViewAttributeVO>
     */
    List<QilingViewAttributeVO> selectAttributes(
            @Param("equipmentId") Integer equipmentId,
            @Param("grade") Integer grade
    );
}